package com.remoting.core.exception;


import com.remoting.core.support.HttpCode;

/**
 * 异常基类
 * <p>说明:</p>
 * <li></li>
 * @author DuanYong
 * @since 2017年2月8日下午4:33:22
 */
@SuppressWarnings("serial")
public abstract class BaseException extends RuntimeException {
	/**错误码*/
	protected String code;
	public BaseException() {
	}

	public BaseException(Throwable ex) {
		super(ex);
	}

	public BaseException(String message) {
		super(message);
	}

	public BaseException(String message, Throwable ex) {
		super(message, ex);
	}
	public BaseException(String code,String message) {
		super(message);
		this.code = code;
	}
    /**
     * 获取HttpCode
     * <p>说明:</p>
     * <li></li>
     * @author DuanYong
     * @return
     * @since 2017年10月18日上午10:55:51
     */
	protected abstract HttpCode getHttpCode();
}
